package com.codechen.scaffold.books.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.codechen.scaffold.books.domain.entity.Book;
import com.codechen.scaffold.books.domain.entity.BookWithUser;
import com.codechen.scaffold.books.domain.req.BookQueryRequest;
import com.codechen.scaffold.books.domain.req.BookRentQueryRequest;
import com.codechen.scaffold.books.mapper.BookWithUserMapper;
import com.codechen.scaffold.books.service.IBookWithUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookWithUserServiceImpl extends ServiceImpl<BookWithUserMapper, BookWithUser> implements IBookWithUserService {


    @Autowired
    private BookWithUserMapper bookWithUserMapper;

    @Override
    public void update(BookWithUser bookWithUser){}

    @Override
    public void deleteRecord(BookWithUser bookWithUser){}

    @Override
    public void deleteRecords(List<BookWithUser> bookWithUsers){}

    @Override
    public IPage<BookWithUser> queryList(Page<BookWithUser> page, BookRentQueryRequest queryRequest){
        return bookWithUserMapper.queryList(page, queryRequest);
    }
}
